home *** CD-ROM | disk | FTP | other *** search
/ CICA 1993 April / CICA MS Windows - April 1993.iso / unzipped / programr / vbasic / 256vbcol / dibutil.c < prev    next >
C/C++ Source or Header  |  1992-03-12  |  1KB  |  59 lines

  1. #include <windows.h>
  2. #include "dibutil.h"
  3.  
  4. /*
  5.  * LibMain
  6.  *
  7.  * Purpose:
  8.  *  DLL-specific entry point called from LibEntry.  Initializes
  9.  *  the DLL's heap and registers the MicroScroll custom control
  10.  *  class.
  11.  *
  12.  * Parameters:
  13.  *  hInstance       HANDLE instance of the DLL.
  14.  *  wDataSeg        WORD segment selector of the DLL's data segment.
  15.  *  wHeapSize       WORD byte count of the heap.
  16.  *  lpCmdLine       LPSTR to command line used to start the module.
  17.  *
  18.  * Return Value:
  19.  *  HANDLE          Instance handle of the DLL.
  20.  *
  21.  */
  22.  
  23. VOID FAR PASCAL LibMain(HANDLE hInstance, WORD wDataSeg,
  24.                           WORD cbHeapSize, LPSTR lpCmdLine)
  25.     {
  26.         hInst = hInstance;
  27.     }
  28.  
  29.  
  30. /*
  31.  * WEP
  32.  *
  33.  * Purpose:
  34.  *  Required DLL Exit function.  Does nothing.
  35.  *
  36.  * Parameters:
  37.  *  bSystemExit     BOOL indicating if the system is being shut
  38.  *                  down or the DLL has just been unloaded.
  39.  *
  40.  * Return Value:
  41.  *  void
  42.  *
  43.  */
  44.  
  45. void FAR PASCAL WEP(int bSystemExit)
  46.     {
  47.     if (bSystemExit)
  48.         {
  49.         //Shutdown
  50.         }
  51.     else
  52.         {
  53.         //DLL use count is zero
  54.         }
  55.  
  56.     return;
  57.     }
  58.  
  59.